import cv2
import numpy as np
name="0002"
image=cv2.imread("image/"+name+".jpg")
b,g,r=cv2.split(image)
cv2.imshow(name,b)
retval=cv2.waitKey(10000)
cv2.imshow(name,g)
retval=cv2.waitKey(10000)
cv2.imshow(name,r)
retval=cv2.waitKey(10000)
# print("shape =",image.shape)
# print("size =",image.size)
# print("dtype =",image.dtype)
#
# image1=cv2.imread("image/"+name+".jpg",0)
# print("shape =",image1.shape)
# print("size =",image1.size)
# print("dtype =",image1.dtype)
# print(image[0][0])
# print(type(image[0,0,0]))
